<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="TestWidget.Test" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" LoadScriptsBeforeUI="false" ScriptMode="Release">
            <Services>
                <asp:ServiceReference InlineScript="true" Path="TestWebMethod.asmx" />
            </Services>
        </asp:ScriptManager>
        <script language="javascript" type="text/javascript" >
            
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            prm.add_initializeRequest(getString);
            function getString()
            {                
                TestWidget.TestWebMethod.ScriptMethodTest();
            }
        </script>
        <asp:UpdatePanel ID="updte" runat="server" UpdateMode="Conditional" >
            <ContentTemplate>
                <asp:Literal ID="liContent" runat="server" />
                <br />
                <asp:Button ID="cmdReferchTime" runat="server" OnClick="cmdReferchTime_Click" Text="Refrech" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
